import { RouterProvider } from 'react-router-dom'
import useAppData from '@/hooks/useAppData.jsx'

const App = () => {
  const { loading, router } = useAppData()
  return (
    router?.routes?.length > 0 && loading ? <RouterProvider router={router} /> :
      <></>
  )
}

export default App